<div class="row-fluid">
    <div class="navbar no-margin">
        <div class="navbar-inner">
            <ul class="breadcrumb">
                <i class="icon-chevron-left hide-sidebar"><a href='#' title="Hide Sidebar" rel='tooltip'>&nbsp;</a></i>
                <i class="icon-chevron-right show-sidebar" style="display:none;"><a href='#' title="Show Sidebar"
                        rel='tooltip'>&nbsp;</a></i>
                <li>
                    <a href="#/onduty">首页</a>
                </li>
                <li>
                    <a href="#/sre/config/adtype_define_list/">配置列表</a>
                </li>
                <li class="active">商业类型配置</li>
            </ul>
        </div>
    </div>
</div>

<div class="container-fluid">

    <div class="row">
        <div class="col-sm-12 col-md-12 main">
            <div class="col-md-6 col-md-offset-3">
                <!--                <form name="form" ng-keydown="if(event.keyCode==13) return false;" ng-submit="form.$valid&&olapConfigAdd()" novalidate>-->
                <form name="form" novalidate>
                    <div class="form-group"
                        ng-class="{'has-error':form.attrName.$error.required,'has-success':!form.attrName.$error.required}">
                        <label style="padding: 0 0 5px">类型名称</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="attrName" ng-model="vm.p.attrName" required />
                        <span ng-show="form.attrName.$error.required" class="help-block">请填写类型名称</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.attrValue.$error.required,'has-success':!form.attrValue.$error.required}">
                        <label style="padding: 0 0 5px">属性值</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="attrValue" ng-model="vm.p.attrValue" required />
                        <span ng-show="form.attrValue.$error.required" class="help-block">请填写属性值</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.dispValList.$error.required,'has-success':!form.dispValList.$error.required}">
                        <label style="padding: 0 0 5px">检索日志对应字符串</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="dispValList" ng-model="vm.p.dispValList"
                            required />
                        <span ng-show="form.dispValList.$error.required" class="help-block">请填写检索日志对应字符串</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.typeAd.$error.required,'has-success':!form.typeAd.$error.required}">
                        <label style="padding: 0 0 5px">商业类型</label>
                        <!--                        <input type="text" class="form-control" name="ctiId" ng-model="vm.p.ctiId"/>-->
                        <select required name="typeAd" ng-model="vm.p.typeAd" class="form-control">
                            <option value="非商业">非商业</option>
                            <option value="商业">商业</option>
                        </select>
                        <span ng-show="form.typeAd.$error.required" class="help-block">请选择商业类型</span>
                    </div>

                    <div class="form-group"
                        ng-class="{'has-error':form.isLego.$error.required,'has-success':!form.isLego.$error.required}">
                        <label style="padding: 0 0 5px">是否lego产品</label>
                        <!--                        <input type="text" class="form-control" name="ctiId" ng-model="vm.p.ctiId"/>-->
                        <select required name="isLego" ng-model="vm.p.isLego" class="form-control">
                            <option value="0">否</option>
                            <option value="1">是</option>
                        </select>
                        <span ng-show="form.isLego.$error.required" class="help-block">请选择是否lego产品</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.isCharging.$error.required,'has-success':!form.isCharging.$error.required}">
                        <label style="padding: 0 0 5px">是否计费</label>
                        <!--                        <input type="text" class="form-control" name="ctiId" ng-model="vm.p.ctiId"/>-->
                        <select required name="isCharging" ng-model="vm.p.isCharging" class="form-control">
                            <option value="0">否</option>
                            <option value="1">是</option>
                        </select>
                        <span ng-show="form.isCharging.$error.required" class="help-block">请选择是否计费</span>
                    </div>
                    <div class="form-group">
                        <label style="padding: 0 0 5px">计费方式</label>
                        <input type="text" class="form-control" name="typeCharging" ng-model="vm.p.typeCharging" />
                    </div>
                    <div class="form-group">
                        <label style="padding: 0 0 5px">lego产品ID</label>
                        <input type="text" class="form-control" name="legoProductid" ng-model="vm.p.legoProductid" />
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.owner.$error.required,'has-success':!form.owner.$error.required}">
                        <label style="padding: 0 0 5px">业务负责人</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="owner" ng-model="vm.p.owner" required />
                        <span ng-show="form.owner.$error.required" class="help-block">请填写业务负责人</span>
                    </div>
                    <div class="form-group">
                        <input class="btn btn-primary" ng-class="{'disabled':!form.$valid}" type="button" value="确定"
                            ng-click="form.$valid&&adtypeDefineSave()" />
                        <a href="#/star/config/adtype_define_list/" class="btn btn-default">返回</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--/.container-->
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput.js"></script>
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput-angular.js"></script>